package com.xd.core.finance.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 放款账户页面放款记录查询vo
 * </p>
 *
 * @author ZCH
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LendingRecordQueryVo {
    @ApiModelProperty(value = "放款时间")
    @ExcelProperty(value = "放款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date lendingTime;

    @ApiModelProperty(value = "交易订单号")
    @ExcelProperty(value = "交易单号")
    private String orderNo;

    @ApiModelProperty(value = "交易状态（1-放款中，2-放款成功，3-放款失败）")
    @ExcelIgnore
    private String status;

    @ApiModelProperty(value = "交易状态（1-放款中，2-放款成功，3-放款失败）")
    @ExcelProperty(value = "交易状态")
    private String statusRemark;

    @ApiModelProperty(value = "实际放款金额")
    @ExcelProperty(value = "实际放款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "债权方机构名称")
    @ExcelProperty(value = "债权方机构名称")
    private String companyName;

    @ApiModelProperty(value = "收款方账户名")
    @ExcelProperty(value = "收款方账户名")
    private String recipientAccountName;

    @ApiModelProperty(value = "收款方账户号")
    @ExcelProperty(value = "收款方账户号")
    private String recipientAccountNumber;

    @ApiModelProperty(value = "放款失败原因")
    @ExcelProperty(value = "放款失败原因")
    private String failReason;
}
